<!DOCTYPE html>
<html lang="en">

<head>
    <meta charset="UTF-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
    <style>
        * {
            margin: 0;
            padding: 0;
            list-style: none;
        }
        .box {
            width: 1060px;
            height: 622px;
            margin: 0px auto;
            border: 2px solid red;
            position: relative;
            display: flex;
            justify-content: space-between;
        }
        .da {
            width: 853px;
            height: 622px;
        }

        ul{
            position: relative;
            top: 0;
            transition: all .2s linear;
        }

        ul>li {
            width: 100%;
            padding: 15px;
        }
        ul>li img{
            display: block;
        }

        .xiao {
            height: 622px;
            position: relative;
        }

        ol {
            position: relative;
            top: 0;
            transition: all .2s linear;
        }

        ol > li{
            padding: 8.5px 4px;
        }

        ol>li img {
            display: block;
            width: 193px;
        }

        .kuang {
            width: 193px;
            height: 110px;
        }
        .xiao > span{
            position: absolute;
            right: 40%;
            padding: 10px;
            font-size: 12px;
            color: #fff;
            background-color: rgba(0, 0, 0, 0.361);
            border-radius: 20px;
            z-index: 10;
        }
        .prev{
            top: 0;
        }
        .next{
            bottom: 0;
        }
        .border{
            width: 193px;
            height: 139px;
            border: 4px solid #000;
            position: absolute;
            top: 6px;
            right: 0;
            transition: all .2s linear;
        }
        .border > span{
            position: absolute;
            width: 0;
            height: 0;
            border: 10px solid #000;
            border-color: transparent;
            border-right-color: #000;
            left: -20px;
            top: 65px;
        }
    </style>
</head>

<body>
    <div class="box">
        <div class="da">
            <ul>
            </ul>
        </div>
        <div class="xiao">
            <span class="prev">上</span>
            <ol>
            </ol>
            <span class="next">下</span>
            <div class="border">
                <span></span>
            </div>
        </div>
    </div>
    <script>
        var ul = document.querySelector("ul");
        var ol = document.querySelector("ol");
        // 1.图片路径的前缀
        var str = "https://www.jq22.com/demo/jqueryhdlbt202103282156/img/t";
        // 3.声明一个空字符串用来叠加 多个li标签
        var str1 = "";
        // 2.循环创建多个li标签   
        for (let i = 1; i <= 7; i++) {
            // 3.拼接字符串
            var url = str + i + ".png"
            // 5.叠加li
            str1 += `<li>
                   <img src = "${url}"  alt= "tu">
                   </li>`
        }
        ul.innerHTML = str1;
        ol.innerHTML = str1;
        


    </script>
</body>

</html>